

#include"PF_Item.h"


string PF_Item::toString() {
    return "PF_Item ID: " + to_string(ID) + ", Available: " + (isAvailable ? "Yes" : "No") +
           ", Picker ID: " + to_string(assignID) + ", Team ID: " + to_string(teamID);
}

int PF_Item::Picked(int teamID,int pickerID){
    if(!isAvailable){
        return 1;
    }
    setAvailable(false);
    setPickerID(pickerID);
    setTeamID(teamID);
    setItemState(ItemState::ASSIGNED);
    return 0;
}